package cn.com.forever.LinkedList;

public class 链表中倒数最后K个节点 {
    public static void main(String[] args) {

    }

    public static ListNode FindKthToTail (ListNode pHead, int k) {
        if(pHead == null) return pHead;
        int length = 0;
        while(pHead != null){
            length++;
            pHead = pHead.next;
        }
        ListNode list = null;
        if(length <= k) return list;
        int i = 0;
        while(pHead != null && i < length-k){
        }
        return pHead;
    }
}
